package com.mz.mattress.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.CouponSendRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CouponSendRecordMapper extends BaseMapper<CouponSendRecord> {

    @Select("select * from mz_coupon_send_record where deleted=0 and status=0 and mobile=#{mobile}")
    List<CouponSendRecord> selectByMobile(@Param("mobile") String mobile);

}
